import { get, post, put, del } from "../utils/request";

// 我的信息
export const myInfo = (params) => {
  return post("/client/customer/info", params);
};

// 我的活动列表
export const myActivityList = (params) => {
  return post("/client/customer/activity", params);
};

// 长短句

export const clientWordsList = (params) => {
  return post("/client/words/list", params);
};

// 单词试题
export const clientWordsQuestion = (params) => {
  return post("/client/words/question/list", params);
};

// 单词题目列表
export const clientWordsQuestionList = (params) => {
  return post("/client/question/list", params);
};

// 我的发帖
export const myPostList = (params) => {
  return post("/client/customer/postbar", params);
};

// 我的评论
export const myCommit = (params) => {
  return post("/client/customer/comment", params);
};

// 做题记录
export const myPracticeRecord = (params) => {
  return post("/client/customer/question/record", params);
};

// 错题记录
export const myWrongRecord = (params) => {
  return post("/client/customer/question/error", params);
};

// 收藏记录
export const myCollectRecord = (params) => {
  return post("/client/customer/question/collect", params);
};

// 我的笔记
export const myNoteRecord = (params) => {
  return post("/client/customer/biji", params);
};

// 我的提问
export const myAskRecord = (params) => {
  return post("/client/customer/ask", params);
};

// 作业详情
export const myHomeworkDetail = (params) => {
  return post("/client/homework/detail", params);
};

// 附件提交
export const myHomeworkFileAdd = (params) => {
  return post("/client/homework/file/add", params);
};

// 附件删除
export const myHomeworkFileDelete = (params) => {
  return post("/client/homework/file/delete", params);
};

// 作业提交
export const myHomeworkSubmit = (params) => {
  return post("/client/homework/hand", params);
};

// 作业列表
export const myHomeworkList = (params) => {
  return post("/client/homework/list", params);
};

// 一对一辅导
export const myOneToOneList = (params) => {
  return post("/client/teacher/list", params);
};

// 订单记录
export const myOrderList = (params) => {
  return post("/client/order/list", params);
};

// 下单
export const myOrderAdd = (params) => {
  return post("/client/order/add", params);
};

// 取消订单
export const myOrderCancel = (params) => {
  return post("/client/order/close", params);
};

// 订单详情
export const myOrderDetail = (params) => {
  return post("/client/order/detail", params);
};

// 申请发票
export const myInvoiceApply = (params) => {
  return post("/client/order/invoice", params);
};

// 积分中心
export const myIntegralCenter = (params) => {
  return post("/client/customer/point", params);
};

// 编辑头像
export const editAvatar = (params) => {
  return post("/client/customer/edit", params);
};

// 更新用户名
export const updateUsername = (params) => {
  return post("/client/customer/edit", params);
};